package com.yc.baihe.beans;

import java.io.Serializable;

public class StoryMessages implements Serializable{
	private static final long serialVersionUID = 1L;
	private int s_num;//故事编号
	private int buid;//评论者编号
	private String comment;//评论
	
	private String temp1;//备用
	private String temp2;//备用
	
	@Override
	public String toString() {
		return "StoryMessages [s_num=" + s_num + ", buid=" + buid + ", comment="
				+ comment + ", temp1=" + temp1 + ", temp2=" + temp2 + "]";
	}

	public int getS_num() {
		return s_num;
	}

	public void setS_num(int s_num) {
		this.s_num = s_num;
	}

	public int getBuid() {
		return buid;
	}

	public void setBuid(int buid) {
		this.buid = buid;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getTemp1() {
		return temp1;
	}

	public void setTemp1(String temp1) {
		this.temp1 = temp1;
	}

	public String getTemp2() {
		return temp2;
	}

	public void setTemp2(String temp2) {
		this.temp2 = temp2;
	}

	public StoryMessages(int s_num, int buid, String comment, String temp1,
			String temp2) {
		super();
		this.s_num = s_num;
		this.buid = buid;
		this.comment = comment;
		this.temp1 = temp1;
		this.temp2 = temp2;
	}

	public StoryMessages() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((comment == null) ? 0 : comment.hashCode());
		result = prime * result + s_num;
		result = prime * result + ((temp1 == null) ? 0 : temp1.hashCode());
		result = prime * result + ((temp2 == null) ? 0 : temp2.hashCode());
		result = prime * result + buid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StoryMessages other = (StoryMessages) obj;
		if (comment == null) {
			if (other.comment != null)
				return false;
		} else if (!comment.equals(other.comment))
			return false;
		if (s_num != other.s_num)
			return false;
		if (temp1 == null) {
			if (other.temp1 != null)
				return false;
		} else if (!temp1.equals(other.temp1))
			return false;
		if (temp2 == null) {
			if (other.temp2 != null)
				return false;
		} else if (!temp2.equals(other.temp2))
			return false;
		if (buid != other.buid)
			return false;
		return true;
	}
	
}
